package cn.ac.cintcm.prespring.cluster.name;

import java.util.HashSet;
import java.util.Set;

public class Word {
	private String text;
	private int frequency;
	private String source;
	private Set<String> sources;
	
	public Word(){
		text="";
		frequency=1;
		source="";
		sources=new HashSet<String>();
	}
	

	public void addSource(String src){
		sources.add(src);
	}	
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public Set<String> getSources() {
		return sources;
	}
	public void setSources(Set<String> sources) {
		this.sources = sources;
	}
	public int getFrequency() {
		return frequency;
	}
	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}	
}
